package ai.weed.qrcode.util;

import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.taobao.api.ApiException;
import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.AlibabaAlihealthDrugtraceTopYljgQueryCodedetailRequest;
import com.taobao.api.response.AlibabaAlihealthDrugtraceTopYljgQueryCodedetailResponse;

import java.util.HashMap;
import java.util.Map;

/**
 * description
 *
 * @author zhong.wang
 * @date 2025/11/3
 **/
public class DrugInfoUtil {
    public static void main(String[] args) throws ApiException {
//        String url = "http://gw.api.taobao.com/router/rest";
//        String appkey = "35232204";
//        String secret = "4da5a867a2bfd896789ac8df05fea4a8";
//        TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
//        AlibabaAlihealthDrugtraceTopYljgQueryCodedetailRequest req = new AlibabaAlihealthDrugtraceTopYljgQueryCodedetailRequest();
//        req.setRefEntId("65f3aa45e4b0dd4327996bfb");
//        req.setCodes("81026160382656478262");
//        AlibabaAlihealthDrugtraceTopYljgQueryCodedetailResponse response = client.execute(req);
//        System.out.println(JSON.toJSONString(response));


    }
}
